import request from '@/utils/request'

// 查询公司基本信息列表
export function listCompanyClient(query) {
  return request({
    url: '/company/companyClient/list',
    method: 'get',
    params: query
  })
}

// 查询公司基本信息详细
export function getCompanyClient(id) {
  return request({
    url: '/company/companyClient/' + id,
    method: 'get'
  })
}

// 获取投资架构图数据
export function getInvestChart(query) {
  return request({
    url: '/company/companyClient/getInvestChart',
    method: 'get',
    params: query
  })
}
// 获取投资架构图数据
export function getGroupSourceByDataId(query) {
  return request({
    url: '/company/companyClient/getGroupSourceByDataId',
    method: 'get',
    params: query
  })
}

// 保存公司基本信息
export function saveCompanyClient(data) {
  return request({
    url: '/company/companyClient/save',
    method: 'post',
    data: data
  })
}

// 删除公司基本信息
export function delCompanyClient(id) {
  return request({
    url: '/company/companyClient/' + id,
    method: 'delete'
  })
}
